Skip to content

docs(tips): add the first tips - #376

Merged
daniel-kindl merged 5 commits into
mainfrom
docs/367-first-tips
Nov 25, 2026
Merged

daniel-kindl merged 5 commits into
mainfrom
docs/367-first-tips

Conversation

@daniel-kindl

Copy link
Copy Markdown
Owner

Closes #367

Summary

tips/ had no tip. tips/index.md now has three, from patterns in this repository:

  • Check the exit code of each step. The exit code of a list or a pipe is the exit code of its last command. Use set -e and set -o pipefail in scripts.
  • Run check-breaking before you push.
  • Find worktrees and branches that are left after a merge. Remove them only with the checks in "After the merge".

The page says that a tip is not a rule. AGENTS.md "Sections" and the README list tips/index.md, as test/routes.test.mjs requires once a tip exists. The test in test/triage-routes.test.mjs that required the empty section to stay out of both lists now requires it in both.

Evidence

  • Verified: test/tips.test.mjs came first and failed on both tests. It pins each tip and the AGENTS.md link. Each command in the tips was run with bash 5 and git 2.55.0: false; true and false | true exit 0, set -o pipefail and set -e exit 1, and the for-each-ref line lists a branch whose remote branch is gone. npm run check passes. check:title and check-breaking pass.
  • Unverified: none.
  • Known risk: none.
  • NOT RUN: actionlint, which runs only in validate.
  • Observability: none, docs only.

Risk and rollback

Low. Revert the commit to roll back.

@daniel-kindl

Copy link
Copy Markdown
Owner Author

Review of PR #376

Verdict: CHANGES-REQUESTED

Reviewed head: e00096cb96c8fdf404e3ef6c7d04378d24505330 (one commit, docs(tips): add the first tips, merge base on origin/main 75d76ab).

Summary

  • Standards: 2 findings (0 High, 1 Medium, 1 Low). Worst: M1.
  • Specification: 0 findings. Each acceptance criterion of docs(tips): add the first tips #367 is met.
  • Blast radius: no unsafe finding.

Standards

  • M1, tips are not reachable from triage, skills/triage/SKILL.md:87-95: the routing list names every section except tips/. Your instructions start with triage, and triage says "Read only those sections". An agent that follows triage never reads tips/index.md. Only the AGENTS.md "Sections" list and the README reach it. Rule: triage is the map from task to section. Why: a tip that no route reaches is not read at the moment it helps, for example when an agent writes a script or pushes. Fix: add one line to the triage section list, for example "Shell scripts, push or worktree clean-up: tips/index.md", or open a follow-up issue and say so in the PR body. The issue's acceptance criteria do not ask for it, so the owner can choose the follow-up. Level 3, Reasoned: I read the triage file and grep -n tips skills/triage/SKILL.md skills/index.md finds nothing.
  • L1, dead exemption in test/routes.test.mjs:90-96: the test "AGENTS.md lists each section index, except tips while it has no tip" keeps the tips.includes("(None yet.") branch. The placeholder is gone, so the branch cannot run and the title is false. Rule: testing (a test says what it proves). Fix: remove the exemption and the title clause. The new tip test then covers the "None yet" case on its own. Optional: the CHANGELOG line at CHANGELOG.md:36 is 227 characters, while the lines near it wrap at 100. Wrap it.

Specification

No finding. Each line of #367, checked:

  • "tips/index.md lists the tips and no longer says "None yet"": met. Three tips are listed, and the test fails on the placeholder.
  • "exit code of a command list ... Check each step": met, tips/index.md section 1.
  • "run check-breaking before you push": met, section 2.
  • "find worktrees whose remote branch is gone": met, section 3.
  • "Each command in a tip was run and works": met. See Verification.
  • "AGENTS.md "Sections" lists tips/index.md": met, AGENTS.md:66.
  • "One CHANGELOG line": met, one line under Unreleased.

Blast radius

The one safety fact: the change is docs plus tests only, and no script, workflow or skill changes. Level 4, Run: npm run check passes on the head. check-breaking on the head prints "No breaking change." (exit 0), so no consumer link breaks. The new README and AGENTS.md lines only add links.

Rewrite of test/triage-routes.test.mjs:49-54: justified and does not weaken a gate. The old test required that tips/index.md is absent from AGENTS.md and README while the section was empty. That rule is false once a tip exists, and the issue's acceptance criteria require the AGENTS.md link. The new test requires the link in both files, which is a stricter check (it now checks the README link as well). Together with test/routes.test.mjs and test/tips.test.mjs, a later removal of the link fails three tests. Level 4, Run. Residual risk is M1 above (triage routing).

Tests

test/tips.test.mjs pins the placeholder, the key parts of each tip and the AGENTS.md link. The author says it failed first, and the PR body names it. It checks text, so it proves the tips exist and have their commands, not that the commands work. I did that by hand. Mutations tried in the throwaway checkout (not in the PR branch):

  • Put "(None yet." back in tips/index.md: tips.test.mjs fails.
  • Remove (tips/index.md) from the AGENTS.md "Sections": tips.test.mjs, triage-routes.test.mjs and routes.test.mjs fail.

Verification

  • npm run check, Node v24.19.0, Linux: exit 0. Level 4, Run (Linux only).
  • Commands in the tips, run with GNU bash 5.3.9 and git 2.55.0: false; true exit 0; false | true exit 0; set -o pipefail; false | true exit 1; set -e; false; echo x exit 1 and no output; npm run <missing>; ls exit 0 (the claim for npm test; ls). All match the text.
  • TITLE="..." node scripts/check-breaking.mjs: exit 0 and "No breaking change." The CONTRIBUTING anchor #run-the-checks and the #after-the-merge anchor exist.
  • git fetch --prune, git worktree list and the for-each-ref | awk '$2 == "[gone]"' line: exit 0. I also made a branch with a deleted remote branch in a scratch repo, and the line printed it.
  • Not run: actionlint and the GitHub validate job (PR body says the same).
  • Cleanup: the throwaway worktree /tmp/rev-376 is removed after this review.

@daniel-kindl

Copy link
Copy Markdown
Owner Author

Re-review of PR #376

Verdict: APPROVE-RECOMMENDED

Reviewed head: 0337c79f2fffc5f4f18a52bf650f4bf5af6d67ae (fix commit 015fd9a, then a merge of origin/main). Earlier review: comment on head e00096cb96c8fdf404e3ef6c7d04378d24505330.

Earlier findings

  • M1, tips not reachable from triage: fixed. skills/triage/SKILL.md:93 now routes "A shell, git or check problem, or a short how-to" to tips/index.md and says a tip is not a rule. test/tips.test.mjs fails if triage has no link to v1/tips/index.md.
  • L1, dead exemption in test/routes.test.mjs: fixed. The None yet. branch and the title clause are gone. The test still checks every section, so no gate is weaker.
  • L1 (optional), long CHANGELOG line: not changed with reason. The line is still one long line (CHANGELOG.md:36). I found no rule that requires a wrap, and the finding was optional. The text now also names the triage section map, which is correct.

Delta check

No new finding. The delta since the first review is the triage line, the test edits, the CHANGELOG text, and the merged main changes (.gitignore and test/gitignore.test.mjs, which are not part of this PR's change). The new triage link points to an existing page, and the triage addition removes no page, skill or anchor.

Verification

  • npm run check on a throwaway checkout of the head, Node v24.19.0, Linux: exit 0, 1003 pass, 0 fail. Level 4, Run (Linux only).
  • Not run: actionlint and the GitHub validate job.
  • The throwaway worktree is removed.

@daniel-kindl

Copy link
Copy Markdown
Owner Author

Re-review of PR #376

Verdict: APPROVE-RECOMMENDED

Reviewed head: 9f08bebb36d2cdc8ddf8ab59686b263e07ed54a9. Earlier approval was at 0337c79f2fffc5f4f18a52bf650f4bf5af6d67ae.

Delta checked: the head is a merge of origin/main (#370, #374, #375) into the branch. The diff from the earlier head touches only files that come from main (CHANGELOG, CONTRIBUTING, coding/, review-standards, setup-quality-gates, workflow/review-and-merge and their tests). The diff from origin/main shows only this PR's 8 files (AGENTS.md, CHANGELOG.md, README.md, triage SKILL.md, three tests, tips/index.md). No earlier finding is reopened.

Verification: validate is completed with success on this head. GitHub shows the PR mergeable with state clean.

@daniel-kindl
daniel-kindl merged commit bed70ec into main Nov 25, 2026
1 check passed
@daniel-kindl
daniel-kindl deleted the docs/367-first-tips branch November 25, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs(tips): add the first tips

1 participant